/* 
 * File:   main.c
 * Author: anantha
 *
 * Created on 20 November, 2011, 7:37 PM
 */

#include <stdio.h>
#include <stdlib.h>
#include "stack_using_linked_list.h"
/*
 * 
 */

int main(int argc, char** argv) {

    ListNode* top=NULL;
    push(&top,1);
    push(&top,2);
    push(&top,3);
    
    while(top!=NULL){
        printf("%d\n",top->data);
        top=top->link;
    }
            
    return (EXIT_SUCCESS);
}

